package org.design.visitorPattern;

/**
 * ComputerPartDisplayVisitor
 *
 * @author 樊温军
 * @date 2025/6/11 下午2:08
 */
public class ComputerPartDisplayVisitor implements ComputerPartVisitor {

    @Override
    public void visit(Computer computer) {
        System.out.println("展示 电脑。");
    }

    @Override
    public void visit(Mouse mouse) {
        System.out.println("展示 鼠标。");
    }

    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("展示 键盘。");
    }

    @Override
    public void visit(Monitor monitor) {
        System.out.println("展示 监控。");
    }
}
